package com.daodaofun.weibo.mapper;


import com.daodaofun.weibo.dto.UserDto;
import com.daodaofun.weibo.model.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

public interface UserMapper {


    void insert(User user);

    User findByUsername(@Param("username") String username);

    List<Long> findMasters(Long userId);

    List<UserDto> findByUsernameLike(@Param("nickname") String content);

    List<UserDto> findUsersByIds(Set<String> follows);

    int isRedisSyncToMysql(Long id);
}
